inherited frmSaleInQuiryBill: TfrmSaleInQuiryBill
  Left = 465
  Caption = #20869#37096#35810#20215#21333
  PixelsPerInch = 96
  TextHeight = 12
  inherited pnlDBCtrl: TPanel
    inherited pnlThirdtrade: TPanel
      inherited lblTTtraderid: TcxLabel
        AnchorX = 78
      end
      inherited cxLabel1: TcxLabel
        Left = 216
        AnchorX = 244
      end
      inherited lblTTBalanceid: TcxLabel
        Left = 381
        AnchorX = 433
      end
    end
    inherited lblName: TcxLabel
      Style.IsFontAssigned = True
    end
    inherited lblPrinted: TcxLabel
      Style.IsFontAssigned = True
    end
  end
  inherited Panel1: TPanel
    inherited labFuncName: TcxLabel
      Style.IsFontAssigned = True
    end
    inherited labFuncDesc: TcxLabel
      Style.IsFontAssigned = True
    end
  end
  inherited pnlBottom: TPanel
    inherited lblDepotQty: TcxLabel
      Style.IsFontAssigned = True
    end
    inherited btnNew: TcxButton
      Caption = #20445#23384
    end
  end
  inherited PopupMenu1: TPopupMenu
    inherited muCopy: TMenuItem
      Visible = False
    end
  end
  inherited pmExec: TPopupMenu
    inherited muSelectBill: TMenuItem
      Visible = False
    end
  end
  inherited pmRelation: TPopupMenu
    inherited muRelationed: TMenuItem
      Visible = False
    end
    inherited N5: TMenuItem
      Visible = False
    end
    inherited muRelationCred: TMenuItem
      Visible = False
    end
  end
  inherited cxStyleRepository1: TcxStyleRepository
    inherited cxGridBandedTableViewStyleSheet1: TcxGridBandedTableViewStyleSheet
      BuiltIn = True
    end
  end
  inherited qryDetail: TUniQuery
    SQL.Strings = (
      
        'select d.*,cast(dbo.f_getallqty(d.productid,unit1qty,unit2qty,un' +
        'it3qty) as varchar(30)) as Allqty '
      
        '     ,dbo.f_getrelationbcode(d.relationbtype,d.relationbid) as r' +
        'elationbcode'
      
        '     ,round((d.price*(1+d.taxrate/100)/(d.disc/100))*(1-d.disc/1' +
        '00)*d.quantity,2) as discamt'
      
        '     ,p.code p_code, p.name p_name, p.spec p_spec, p.abname p_ab' +
        'name'
      
        '     ,p.custom1 p_custom1, p.custom2 p_custom2, p.custom3 p_cust' +
        'om3, p.custom4 p_custom4, p.custom5 p_custom5 '
      
        '     ,p.custom6 p_custom6, p.custom7 p_custom7, p.custom8 p_cust' +
        'om8, p.custom9 p_custom9, p.custom10 p_custom10 '
      '     ,dt.code depotcode, dt.name depotname '
      '     ,u.barcode unitbarcode, u.unitname, u.rate unitrate '
      '     from tb_purorderdtl d'
      '     left join td_product p on d.productid=p.p_id'
      '     left join td_depot dt on d.depotid=dt.depotid'
      '     left join td_unitprice u on d.unitid=u.unitid')
    Left = 224
  end
  inherited MainDataSet: TUniQuery
    SQL.Strings = (
      'select top 1 m.*, t.scamt,t.iscash from tb_purorder m '
      '    left join td_trader t on m.traderid=t.traderid'
      '   ')
  end
end
